package com.yxw.live_vod_boot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxw.live_vod_boot.entity.YxSessionTalkRecordEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author liuxin
 * @create 2023-12-05 11:54:31
 * @description 会话信息管理
 */
@Repository
public interface SessionTalkRecordMapper extends BaseMapper<YxSessionTalkRecordEntity> {

    /**
     * 删除该条会话记录下面所有的聊天记录(这里过滤和删除统一用用户ID)
     * @param talkId
     * @param userId
     */
    void deleteRecordByTaskId(@Param("talkId") String talkId, @Param("userId") Long userId);
}
